package saeildamil.ch18.sync;

public class MultiThreadEx03{
	public static void main(String[] args) {
		SharedArea sharedArea1 = new SharedArea();
		
		CalcThread th = new CalcThread();
		CircleThread obj = new CircleThread(5);
		Thread th2 = new Thread(obj);
		
		th.sharedArea = sharedArea1;
		obj.sharedArea = sharedArea1;
		
		th.start();
		th2.start();
		System.out.println(sharedArea1.result);
		
	}

}
